<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<jsp:include page="../head.jsp">
<jsp:param value="客户管理" name="title"/>
</jsp:include>
</head>
<body>
	<div class="container">
		<div class="row">
			<div id="content" class="col-lg-12">
				<div class = "dao">		
					<a class="section" href = "manager">客户跟进</a>
					<i class="right chevron icon divider"></i>
					<span class="active section">客户管理</span>							
				</div>
				<div class = "dao">
					<div class="ui buttons">
						<a href="search/apply" class="ui button"> <i class="icon user"></i>
							查看援助
						</a>
					</div>
				</div>
				<div class="row">
					<div class="col-md-12">
						<!-- BOX -->
						<div class="box border blue">
							<div class="box-title">
								<h4>客户列表</h4>
							</div>
						<div class="box-body center">
							<table id="datatable2" cellpadding="0" cellspacing="0" border="0" class="datatable table table-striped table-bordered table-hover">
								<thead >
								<tr>
								<th>姓名</th>
								<th>性别</th>
								<th>住址</th>
								<th>电话</th>
								<th>学历</th>
								<th>操作</th>
								</tr>
							</thead>
							<tbody>
								
						<c:forEach items="${custList }" var="custList">
							<tr class="gradeX" >
								<td style="display:none">
									<input class="item-check input" type="hidden" value="${custList.cust_id }"><label></label>
								</td>
								<td><a href="common/info?id=${custList.cust_id}">${custList.cust_name}</a>
								</td>
								<td>${custList.cust_gender }</td>
								<td>${custList.cust_address }</td>
								<td>${custList.cust_telphone }</td>
								<td>${custList.degree_name }</td>
								<td>
									<a href="cust/update?id=${custList.cust_id}"><i></i> 修改信息</a>&nbsp;&nbsp;
									<a href="follow/manager?id=${custList.cust_id}&name=${ custList.cust_name }"><i></i> 新增记录</a>&nbsp;&nbsp;
									<a href="search/all?id=${custList.cust_id}&name=${ custList.cust_name }"> <i></i>查看记录</a>&nbsp;&nbsp;
									<a href="insert/apply?id=${custList.cust_id}&name=${ custList.cust_name }"> <i></i>申请援助</a>
								</td>
							</tr>
						</c:forEach>
						<c:if test="${empty custList}">
							<tr>
								<td style="text-align: center;" colspan="8">暂无记录</td>
							</tr>
						</c:if>
					</tbody>
				</table>
				<c:if test="${totalPage > 1 }">
					<div class="page">
						<a <c:if test="${page!=1}">href="dept/form?page=1${queryString}"</c:if>
							class="${page == 1?'disable':''}">首页</a> <a
							<c:if test="${page!=1}">href="dept/form?page=${page-1}${queryString}"</c:if>
							class="${page == 1?'disable':''}">上一页</a> <a
							<c:if test="${page!=totalPage}">href="dept/form?page=${page+1 }${queryString}"</c:if>
							class="${page == totalPage?'disable':''}">下一页</a> <a
							<c:if test="${page!=totalPage}">href="dept/form?page=${totalPage }${queryString}"</c:if>
							class="${page == totalPage?'disable':''}">最后一页</a> <span>
							${page}/${ totalPage} </span>
					</div>
				</c:if>
				</div>
			</div>
		</div>
	</div>
</div>
</body>
</html>